<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>年龄</title>
  <!-- <script src="../jquery-3.6.0.min.js"></script> -->
</head>

<body>


</body>
<script>
  var age=prompt("请输入年龄：",)
  if(age>=100){
      document.write("神仙")
  }
  else if(age>=60){
      document.write("老年")
  }
  else if(age>=40){
      document.write("中年")
  }
  else if(age>=24){
      document.write("青年")
  }
  else if(age>=14){
      document.write("少年")
  }
  else{
      document.write("幼儿")
  }
  </script>
</html>